package com.glsc.ngateway.common.base.domain.oracle.ecology;

import com.glsc.ngateway.common.base.domain.convert.LocalDateAttributeConverter_10;

import javax.persistence.*;
import java.time.LocalDate;
import java.time.LocalTime;


@Entity
@Table(name = "WORKFLOW_REQUESTBASE", schema = "ECOLOGY_TARGET", catalog = "")
public class WorkflowRequestbase {

    private Integer requestid;
    private Integer workflowid;
    private Integer lastnodeid;
    private String lastnodetype;
    private Integer currentnodeid;
    private String currentnodetype;
    private String status;
    private Integer passedgroups;
    private Integer totalgroups;
    private String requestname;
    private Integer creater;
    private LocalDate createdate;
    private LocalTime createtime;
    private Integer lastoperator;
    private LocalDate lastoperatedate;
    private LocalTime lastoperatetime;
    private Integer deleted;
    private Integer creatertype;
    private Integer lastoperatortype;
    private Double nodepasstime;
    private Double nodelefttime;
    private String docids;
    private String crmids;
    private String hrmidsTemp;
    private String prjids;
    private String cptids;
    private Integer requestlevel;
    private String requestmark;
    private Integer messagetype;
    private Integer mainrequestid;
    private Integer currentstatus;
    private String laststatus;
    private Integer ismultiprint;
    private Integer chatstype;
    private String ecologyPinyinSearch;
    private String hrmids;
    private String requestnamenew;
    private String formsignaturemd5;
    private String dataaggregated;

    @Id
    @Column(name = "REQUESTID", nullable = false, precision = 0)
    public Integer getRequestid() {
        return requestid;
    }

    public void setRequestid(Integer requestid) {
        this.requestid = requestid;
    }

    @Basic
    @Column(name = "WORKFLOWID", nullable = true, precision = 0)
    public Integer getWorkflowid() {
        return workflowid;
    }

    public void setWorkflowid(Integer workflowid) {
        this.workflowid = workflowid;
    }

    @Basic
    @Column(name = "LASTNODEID", nullable = true, precision = 0)
    public Integer getLastnodeid() {
        return lastnodeid;
    }

    public void setLastnodeid(Integer lastnodeid) {
        this.lastnodeid = lastnodeid;
    }

    @Basic
    @Column(name = "LASTNODETYPE", nullable = true, length = 1)
    public String getLastnodetype() {
        return lastnodetype;
    }

    public void setLastnodetype(String lastnodetype) {
        this.lastnodetype = lastnodetype;
    }

    @Basic
    @Column(name = "CURRENTNODEID", nullable = true, precision = 0)
    public Integer getCurrentnodeid() {
        return currentnodeid;
    }

    public void setCurrentnodeid(Integer currentnodeid) {
        this.currentnodeid = currentnodeid;
    }

    @Basic
    @Column(name = "CURRENTNODETYPE", nullable = true, length = 1)
    public String getCurrentnodetype() {
        return currentnodetype;
    }

    public void setCurrentnodetype(String currentnodetype) {
        this.currentnodetype = currentnodetype;
    }

    @Basic
    @Column(name = "STATUS", nullable = true, length = 500)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "PASSEDGROUPS", nullable = true, precision = 0)
    public Integer getPassedgroups() {
        return passedgroups;
    }

    public void setPassedgroups(Integer passedgroups) {
        this.passedgroups = passedgroups;
    }

    @Basic
    @Column(name = "TOTALGROUPS", nullable = true, precision = 0)
    public Integer getTotalgroups() {
        return totalgroups;
    }

    public void setTotalgroups(Integer totalgroups) {
        this.totalgroups = totalgroups;
    }

    @Basic
    @Column(name = "REQUESTNAME", nullable = true, length = 1000)
    public String getRequestname() {
        return requestname;
    }

    public void setRequestname(String requestname) {
        this.requestname = requestname;
    }

    @Basic
    @Column(name = "CREATER", nullable = true, precision = 0)
    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    @Basic
    @Column(name = "CREATEDATE")
    @Convert(converter= LocalDateAttributeConverter_10.class)
    public LocalDate getCreatedate() {
        return createdate;
    }

    public void setCreatedate(LocalDate createdate) {
        this.createdate = createdate;
    }

    @Basic
    @Column(name = "CREATETIME")
    public LocalTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalTime createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "LASTOPERATOR", nullable = true, precision = 0)
    public Integer getLastoperator() {
        return lastoperator;
    }

    public void setLastoperator(Integer lastoperator) {
        this.lastoperator = lastoperator;
    }

    @Basic
    @Column(name = "LASTOPERATEDATE")
    @Convert(converter= LocalDateAttributeConverter_10.class)
    public LocalDate getLastoperatedate() {
        return lastoperatedate;
    }

    public void setLastoperatedate(LocalDate lastoperatedate) {
        this.lastoperatedate = lastoperatedate;
    }

    @Basic
    @Column(name = "LASTOPERATETIME")
    public LocalTime getLastoperatetime() {
        return lastoperatetime;
    }

    public void setLastoperatetime(LocalTime lastoperatetime) {
        this.lastoperatetime = lastoperatetime;
    }

    @Basic
    @Column(name = "DELETED", nullable = true, precision = 0)
    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Basic
    @Column(name = "CREATERTYPE", nullable = true, precision = 0)
    public Integer getCreatertype() {
        return creatertype;
    }

    public void setCreatertype(Integer creatertype) {
        this.creatertype = creatertype;
    }

    @Basic
    @Column(name = "LASTOPERATORTYPE", nullable = true, precision = 0)
    public Integer getLastoperatortype() {
        return lastoperatortype;
    }

    public void setLastoperatortype(Integer lastoperatortype) {
        this.lastoperatortype = lastoperatortype;
    }

    @Basic
    @Column(name = "NODEPASSTIME", nullable = true, precision = 0)
    public Double getNodepasstime() {
        return nodepasstime;
    }

    public void setNodepasstime(Double nodepasstime) {
        this.nodepasstime = nodepasstime;
    }

    @Basic
    @Column(name = "NODELEFTTIME", nullable = true, precision = 0)
    public Double getNodelefttime() {
        return nodelefttime;
    }

    public void setNodelefttime(Double nodelefttime) {
        this.nodelefttime = nodelefttime;
    }

    @Basic
    @Column(name = "DOCIDS", nullable = true, length = 4000)
    public String getDocids() {
        return docids;
    }

    public void setDocids(String docids) {
        this.docids = docids;
    }

    @Basic
    @Column(name = "CRMIDS", nullable = true, length = 4000)
    public String getCrmids() {
        return crmids;
    }

    public void setCrmids(String crmids) {
        this.crmids = crmids;
    }

    @Basic
    @Column(name = "HRMIDS_TEMP", nullable = true, length = 4000)
    public String getHrmidsTemp() {
        return hrmidsTemp;
    }

    public void setHrmidsTemp(String hrmidsTemp) {
        this.hrmidsTemp = hrmidsTemp;
    }

    @Basic
    @Column(name = "PRJIDS", nullable = true, length = 4000)
    public String getPrjids() {
        return prjids;
    }

    public void setPrjids(String prjids) {
        this.prjids = prjids;
    }

    @Basic
    @Column(name = "CPTIDS", nullable = true, length = 4000)
    public String getCptids() {
        return cptids;
    }

    public void setCptids(String cptids) {
        this.cptids = cptids;
    }

    @Basic
    @Column(name = "REQUESTLEVEL", nullable = true, precision = 0)
    public Integer getRequestlevel() {
        return requestlevel;
    }

    public void setRequestlevel(Integer requestlevel) {
        this.requestlevel = requestlevel;
    }

    @Basic
    @Column(name = "REQUESTMARK", nullable = true, length = 800)
    public String getRequestmark() {
        return requestmark;
    }

    public void setRequestmark(String requestmark) {
        this.requestmark = requestmark;
    }

    @Basic
    @Column(name = "MESSAGETYPE", nullable = true, precision = 0)
    public Integer getMessagetype() {
        return messagetype;
    }

    public void setMessagetype(Integer messagetype) {
        this.messagetype = messagetype;
    }

    @Basic
    @Column(name = "MAINREQUESTID", nullable = true, precision = 0)
    public Integer getMainrequestid() {
        return mainrequestid;
    }

    public void setMainrequestid(Integer mainrequestid) {
        this.mainrequestid = mainrequestid;
    }

    @Basic
    @Column(name = "CURRENTSTATUS", nullable = true, precision = 0)
    public Integer getCurrentstatus() {
        return currentstatus;
    }

    public void setCurrentstatus(Integer currentstatus) {
        this.currentstatus = currentstatus;
    }

    @Basic
    @Column(name = "LASTSTATUS", nullable = true, length = 480)
    public String getLaststatus() {
        return laststatus;
    }

    public void setLaststatus(String laststatus) {
        this.laststatus = laststatus;
    }

    @Basic
    @Column(name = "ISMULTIPRINT", nullable = true, precision = 0)
    public Integer getIsmultiprint() {
        return ismultiprint;
    }

    public void setIsmultiprint(Integer ismultiprint) {
        this.ismultiprint = ismultiprint;
    }

    @Basic
    @Column(name = "CHATSTYPE", nullable = true, precision = 0)
    public Integer getChatstype() {
        return chatstype;
    }

    public void setChatstype(Integer chatstype) {
        this.chatstype = chatstype;
    }

    @Basic
    @Column(name = "ECOLOGY_PINYIN_SEARCH", nullable = true, length = 1000)
    public String getEcologyPinyinSearch() {
        return ecologyPinyinSearch;
    }

    public void setEcologyPinyinSearch(String ecologyPinyinSearch) {
        this.ecologyPinyinSearch = ecologyPinyinSearch;
    }

    @Basic
    @Column(name = "HRMIDS", nullable = true)
    public String getHrmids() {
        return hrmids;
    }

    public void setHrmids(String hrmids) {
        this.hrmids = hrmids;
    }

    @Basic
    @Column(name = "REQUESTNAMENEW", nullable = true, length = 4000)
    public String getRequestnamenew() {
        return requestnamenew;
    }

    public void setRequestnamenew(String requestnamenew) {
        this.requestnamenew = requestnamenew;
    }

    @Basic
    @Column(name = "FORMSIGNATUREMD5", nullable = true, length = 1000)
    public String getFormsignaturemd5() {
        return formsignaturemd5;
    }

    public void setFormsignaturemd5(String formsignaturemd5) {
        this.formsignaturemd5 = formsignaturemd5;
    }

    @Basic
    @Column(name = "DATAAGGREGATED", nullable = true, length = 1)
    public String getDataaggregated() {
        return dataaggregated;
    }

    public void setDataaggregated(String dataaggregated) {
        this.dataaggregated = dataaggregated;
    }


    @Override
    public String toString() {
        return "WorkflowRequestbase{" +
                "requestid=" + requestid +
                ", workflowid=" + workflowid +
                ", lastnodeid=" + lastnodeid +
                ", lastnodetype='" + lastnodetype + '\'' +
                ", currentnodeid=" + currentnodeid +
                ", currentnodetype='" + currentnodetype + '\'' +
                ", status='" + status + '\'' +
                ", passedgroups=" + passedgroups +
                ", totalgroups=" + totalgroups +
                ", requestname='" + requestname + '\'' +
                ", creater=" + creater +
                ", createdate=" + createdate +
                ", createtime=" + createtime +
                ", lastoperator=" + lastoperator +
                ", lastoperatedate=" + lastoperatedate +
                ", lastoperatetime=" + lastoperatetime +
                ", deleted=" + deleted +
                ", creatertype=" + creatertype +
                ", lastoperatortype=" + lastoperatortype +
                ", nodepasstime=" + nodepasstime +
                ", nodelefttime=" + nodelefttime +
                ", docids='" + docids + '\'' +
                ", crmids='" + crmids + '\'' +
                ", hrmidsTemp='" + hrmidsTemp + '\'' +
                ", prjids='" + prjids + '\'' +
                ", cptids='" + cptids + '\'' +
                ", requestlevel=" + requestlevel +
                ", requestmark='" + requestmark + '\'' +
                ", messagetype=" + messagetype +
                ", mainrequestid=" + mainrequestid +
                ", currentstatus=" + currentstatus +
                ", laststatus='" + laststatus + '\'' +
                ", ismultiprint=" + ismultiprint +
                ", chatstype=" + chatstype +
                ", ecologyPinyinSearch='" + ecologyPinyinSearch + '\'' +
                ", hrmids='" + hrmids + '\'' +
                ", requestnamenew='" + requestnamenew + '\'' +
                ", formsignaturemd5='" + formsignaturemd5 + '\'' +
                ", dataaggregated='" + dataaggregated + '\'' +
                '}';
    }
}
